﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Kooboo.Commerce
{
    public interface ICategory
    {
        int Id
        {
            get;
            set;
        }

        [Required]
        [StringLength(50)]
        string Name
        {
            get;
            set;
        }

        string Description
        {
            get;
            set;
        }

        string Photo
        {
            get;
            set;
        }

      
        ICategory Parent
        {
            get;
            set;
        }

        IQueryable<ICategory> Children
        {
            get;
        }

        IQueryable<IProduct> Products
        {
            get;
        }
    }
}
